import os

APP_ROOT = os.path.dirname(os.path.abspath(__file__))
AUDIO_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'audio' + os.sep
MP4_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'mp4' + os.sep
TXT_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'txt' + os.sep
IMG_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'tmp_imgs' + os.sep
STOCK_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'stocks' + os.sep
TEMPLATE_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'ppt_template' + os.sep
TEMPLATE_IMG_PATH = APP_ROOT + os.sep + 'static' + os.sep + 'template_imgs' + os.sep
TEMP_PATH = APP_ROOT + os.sep + 'temp' + os.sep
TEMP_IMAGE_PATH = APP_ROOT + os.sep + 'temp' + os.sep + 'images' + os.sep

STOCK_INTRO_PATH = APP_ROOT + os.sep + 'temp' + os.sep + 'stock_intro' + os.sep

CATEGORY_MAP = {
    # "S11":"农林牧渔"（分别细分为农、林、牧、渔业）,
    "S1106": "农业",
    "S1103": "林业",
    # "":"牧业" ------ 没有,
    "S1102": "渔业",
    "S21": "采掘",
    "S22": "化工",
    "S23": "钢铁",
    "S24": "有色金属",
    "S27": "电子",
    "S28": "汽车",
    "S33": "家用电器",
    "S34": "食品饮料",
    "S35": "纺织服装",
    "S36": "轻工制造",
    "S37": "医药生物",
    "S41": "公用事业",
    "S42": "交通运输",
    "S43": "房地产",
    "S45": "商业贸易",
    "S46": "休闲服务",
    "S48": "银行",
    "S49": "非银金融",
    "S51": "综合",
    "S61": "建筑材料",
    "S62": "建筑装饰",
    "S63": "电气设备",
    "S64": "机械设备",
    "S65": "国防军工",
    "S71": "计算机",
    "S72": "传媒",
    "S73": "通信",
}

PAGE_3_DEFAULT_IMG = "page_3_default_cover.png"
PAGE_4_DEFAULT_IMG = "page_4_default_cover.png"

BUILDING_IMG = "公司大楼.png"
CONTROLLER_IMG = "实际控制人.png"
